package com.onlocation.util;

import android.content.Context;
import android.content.res.Resources;

/**
 * Author: Steve Carrell
 * Date: 5/13/12
 */
public class ResourceUtil {
    private static Resources resources = null;

    public static void init() {
        if (resources == null) {
            resources = Util.context.getResources();
        }
    }
    
    public static Resources getResources() {
        return resources;
    }
    
    public static String getString(int id) {
        return resources.getString(id);
    }
    
    public static String[] getStringArray(int id) {
        return resources.getStringArray(id);
    }
}
